<template>
	<view>
		<image :src="url" class="container"></image>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				url: "",
			}
		},
		onLoad: function (options) {
		    this.getCode();
		  },
		  methods:{
			  //获取二维码
			    getCode() {
			      this.$api.getTeamCode().then(res => {

			          this.url= res.data.data.url

			      })
			    },
		  }
	}
</script>

<style scoped>
	.container {
	  width: 100vw;
	  height:calc(100vh - var(--status-bar-height));
	  display: block;
	}
</style>
